//Naming
Name M103 Heavy
ShortName M103
//Visuals
Icon iconm103
Model CowPack.m103
Texture skinm103
//Third Person Camera Distance
CameraDistance 7.5
//Throttle
MaxThrottle 0.75
MaxNegativeThrottle 0.5
//Steering modifiers
TurnLeftSpeed 0.4
TurnRightSpeed 0.4
//For calculating whether wheels are on the ground or not for driving
WheelRadius 1.0
RotateWheels True 
//Wheel positions for collision handling. Tanks still have 4 wheels, they are just the corner ones.
WheelPosition 0 -32 -12 -18
WheelPosition 1 -32 -12 18
WheelPosition 2 32 -12 18
WheelPosition 3 32 -12 -18
WheelSpringStrength 0.5
//If true, then all wheels will apply drive forces
FourWheelDrive true
//Tank mode activate
Tank true
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 2000
//Inventory Slots
CargoSlots 10
ShellSlots 5
//Driver and passenger positions
Driver 0 47 0 -360 360 -8 15
RotatedDriverOffset -30 0 0
Passengers 0
//Passenger 1 0 34 0 turret -360 360 -15 60 bren Bren
//GunOrigin 1 0 40 0
BarrelPosition 153.6 31 0
AllowAllAmmo False 
AddAmmo 120mmheatfs
//Secondary gun
AddGun 24 42 6 turret 50calg
AddGun 24 42 -6 turret 30calg
AddGun 13.8 70.2 0 turret 30calg
//Delays are in ticks or 1/20ths of seconds
ShootDelay 2
ShellDelay 360
//Sounds
StartSound cowtankstart
StartSoundLength 20
EngineSound cowtankmove
EngineSoundLength 75
ShootSoundPrimary 120shell
ShootSoundSecondary america50calshoot
//Recipe
//Each section of the plane may have many parts
//The sections are tailWheel, tail, bay, topWing, leftWingWheel, leftWing, rightWingWheel,
//rightWing, nose, turret, coreWheel, core
AddRecipeParts turret 1 cowturret
AddRecipeParts core 1 cowchassis 1 advmetalcompound 30 metalcompound 1 heavyarmorpackage
AddRecipeParts leftTrack 2 cowwheel
AddRecipeParts rightTrack 2 cowwheel

//Health and collision
SetupPart core 1000 -78 0 -19 136 23 39
SetupPart turret 1250 -57 23 -24 91 23 49
SetupPart leftTrack 500 -78 -9 20 136 27 17
SetupPart rightTrack 500 -78 -9 -36 136 27 17

BulletDetection 5

//Size Multiplier; scales up the model
ModelScale 1.2
IsExplosionWhenDestroyed true

DriverAimSpeed 2 2.5 0

TrackLinkLength 3

RightLinkPoint [34,15.5,-30.5]
RightLinkPoint [42,7.5,-30.5]
RightLinkPoint [42,3.5,-30.5]
RightLinkPoint [37,-1.5,-30.5]
RightLinkPoint [20,-9.5,-30.5]
RightLinkPoint [-59,-9.5,-30.5]
RightLinkPoint [-74,-8,-30.5]
RightLinkPoint [-85,0.5,-30.5]
RightLinkPoint [-90,5.5,-30.5]
RightLinkPoint [-90,10.5,-30.5]
RightLinkPoint [-85,15.5,-30.5]

LeftLinkPoint [34,15.5,30.5]
LeftLinkPoint [42,7.5,30.5]
LeftLinkPoint [42,3.5,30.5]
LeftLinkPoint [37,-1.5,30.5]
LeftLinkPoint [20,-9.5,30.5]
LeftLinkPoint [-59,-9.5,30.5]
LeftLinkPoint [-74,-8,30.5]
LeftLinkPoint [-85,0.5,30.5]
LeftLinkPoint [-90,5.5,30.5]
LeftLinkPoint [-90,10.5,30.5]
LeftLinkPoint [-85,15.5,30.5]

//----------------------------Exhaust Effects
//1st gear change
AddEmitter smoke 1 [-90,22.5,6.5] [1,1,1] [0,1.5,0] 0.02 0.07 0 1 core
AddEmitter smoke 1 [-90,22.5,-6.5] [1,1,1] [0,1.5,0] 0.02 0.07 0 1 core

//1st gear
AddEmitter largesmoke 1 [-90,22.5,6.5] [1,1,1] [0,0.2,0] 0.05 0.2 0 1 core
AddEmitter largesmoke 1 [-90,22.5,-6.5] [1,1,1] [0,0.2,0] 0.05 0.2 0 1 core
//2nd gear change
AddEmitter smoke 1 [-90,22.5,6.5] [1,1,1] [0,3,0] 0.2 0.25 0 1 core
AddEmitter smoke 1 [-90,22.5,-6.5] [1,1,1] [0,3,0] 0.2 0.25 0 1 core

//2nd gear
AddEmitter smoke 1 [-90,22.5,6.5] [1,1,1] [0,0.7,0] 0.2 0.5 0 1 core
AddEmitter smoke 1 [-90,22.5,-6.5] [1,1,1] [0,0.7,0] 0.2 0.5 0 1 core

//3rd gear change
AddEmitter smoke 1 [-90,22.5,6.5] [1,1,1] [0,4,0] 0.5 0.52 0 1 core
AddEmitter flame 1 [-90,22.5,6.5] [1,1,1] [0,2,0] 0.5 0.51 0 1 core
AddEmitter smoke 1 [-90,22.5,-6.5] [1,1,1] [0,4,0] 0.5 0.52 0 1 core
AddEmitter flame 1 [-90,22.5,-6.5] [1,1,1] [0,2,0] 0.5 0.51 0 1 core

//3rd gear
AddEmitter smoke 1 [-90,22.5,6.5] [1,1,1] [0,0.7,0] 0.5 2 0 1 core
AddEmitter smoke 3 [-90,22.5,6.5] [1,1,1] [0,0.5,0] 0.8 2 0 1 core
AddEmitter smoke 1 [-90,22.5,-6.5] [1,1,1] [0,0.7,0] 0.5 2 0 1 core
AddEmitter smoke 3 [-90,22.5,-6.5] [1,1,1] [0,0.5,0] 0.8 2 0 1 core

//4th gear change
AddEmitter smoke 1 [-90,22.5,6.5] [1,1,1] [0,5,0] 0.7 0.75 0 1 core
AddEmitter flame 1 [-90,22.5,6.5] [1,1,1] [0,5,0] 0.7 0.73 0 1 core

//----------------------------Damage
AddEmitter smoke 2 [-34,26,-25.25] [7,1,7] [0,0.5,0] -1 1 0 0.75 core
AddEmitter smoke 2 [-34,26,25.25] [7,1,7] [0,0.5,0] -1 1 0 0.75 core
AddEmitter smoke 2 [5,43,14] [3,1,3] [0,0.5,0] -1 1 0 0.75 turret

AddEmitter largesmoke 3 [-34,26,-25.25] [7,1,7] [0,1,0] -1 1 0 0.5 core
AddEmitter largesmoke 3 [-34,26,25.25] [7,1,7] [0,1,0] -1 1 0 0.5 core
AddEmitter largesmoke 2 [5,43,14] [3,1,3] [0,0.5,0] -1 1 0 0.5 turret

AddEmitter largesmoke 1 [-34,26,-25.25] [7,1,7] [0,1.5,0] -1 1 0 0.25 core
AddEmitter largesmoke 1 [-34,26,25.25] [7,1,7] [0,1.5,0] -1 1 0 0.25 core

AddEmitter flame 1 [-34,26,-25.25] [5,1,5] [0,1,0] -1 1 0 0.25 core
AddEmitter flame 1 [-34,26,25.25] [5,1,5] [0,1,0] -1 1 0 0.25 core
AddEmitter largesmoke 1 [5,43,14] [3,1,3] [0,1,0] -1 1 0 0.5 turret

Description American Heavy Tank_120mm HEATFS

//Barrel
ShootParticlesSecondary crit 0.5 0 0

ShootParticlesPrimary largesmoke 0.5 0 0.1
ShootParticlesPrimary largesmoke 0.5 0 -0.1
ShootParticlesPrimary largesmoke 0.5 0.06 0.06
ShootParticlesPrimary largesmoke 0.5 0.06 -0.06
ShootParticlesPrimary largesmoke 0.5 -0.06 0.06
ShootParticlesPrimary largesmoke 0.5 -0.06 -0.06
ShootParticlesPrimary largesmoke 0.5 -0.1 0
ShootParticlesPrimary largesmoke 0.5 0.1 0
ShootParticlesPrimary cloud 0.05 0 0.2
ShootParticlesPrimary cloud 0.05 0 -0.2
ShootParticlesPrimary cloud 0.05 0.13 0.13
ShootParticlesPrimary cloud 0.05 0.13 -0.13
ShootParticlesPrimary cloud 0.05 -0.13 0.13
ShootParticlesPrimary cloud 0.05 -0.13 -0.13
ShootParticlesPrimary cloud 0.05 -0.2 0
ShootParticlesPrimary cloud 0.05 0.2 0